<SCRIPT type="text/javascript" src="__PUBLIC__/ueditor143/ueditor.config.js"></SCRIPT>
<SCRIPT type="text/javascript" src="__PUBLIC__/ueditor143/ueditor.all.min.js"></SCRIPT>
<include file='Public/header' />
<form method="POST" enctype= "multipart/form-data" action="{:U('add')}" role="form">
	<table class="table">
				<tr><th>产品名称</th><td><input type="text" class="form-control" required="required" name="name"></td></tr>
				<tr><th>产品类型</th>
				<td><select class="form-control" required="required" name="cid">
					<volist name="idlist" id="vo">
				  <option value ="{$vo.id}">{$vo.name}</option>
				</volist>
				</select></td>
				<tr><th>单价</th><td><input type="text" class="form-control" required="required" name="price"></td></tr>
				<tr><th>单位</th><td><input type="text" class="form-control" required="required" name="danwei" placeholder="例如:千克"></td></tr>
				<tr><th>库存</th><td><input type="text" class="form-control" required="required" name="kucun"></td></tr>
				<tr><th>图片</th><td><input type="file" class="form-control" name="pic"></td></tr>
				<tr><th>产品介绍</th>
					<td> <script id="intro" name="intro" type="text/plain">请输入介绍</script>
		<script type="text/javascript">
       UE.getEditor('intro', {
           theme:"default", //皮肤
           lang:"zh-cn", //语言
           initialFrameWidth:800,  //初始化编辑器宽度,默认800
           initialFrameHeight:320,
           toolbars: [
               [
                   'source',
                   'undo', //撤销
                   'redo', //重做
                   'bold', //加粗
                   'italic', //斜体
                   'underline', //下划线
                   'selectall', //全选
                   'preview', //预览
                   'horizontal', //分隔线
                   'cleardoc', //清空文档
                   'fontfamily', //字体
                   'fontsize', //字号
                   'paragraph', //段落格式
                   'simpleupload', //单图上传
                   'insertimage', //多图上传
                   'link', //超链接
                   'emotion', //表情
                   'justifyleft', //居左对齐
                   'justifyright', //居右对齐
                   'justifycenter', //居中对齐
                   'justifyjustify', //两端对齐
                   'forecolor', //字体颜色
                   'backcolor', //背景色
                   'insertorderedlist', //有序列表
                   'insertunorderedlist', //无序列表
                   'fullscreen', //全屏
                   'imagenone', //默认
                   'imageleft', //左浮动
                   'imageright', //右浮动
                   'imagecenter', //居中
                   'lineheight', //行间距

                              ]
                           ]
                       });
                   </script>
				</td>
				</tr>
				<tr><th>产品宣传介绍</th><td><input type="text" name="lintro" class="form-control" rows="3" cols="20"
				placeholder="产品简短介绍，尽量15字以内！"></td></tr>
			</table>	
	</table>
	<input type="submit" class="btn btn-primary" value="提交">
</form>
<include file='Public/footer'/>
